package edu.whu.assignment6.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.whu.assignment6.dataobject.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SupplierMapper extends BaseMapper<Supplier> {

    @Select("select * from supplier where product_id = #{pid}")
    List<Supplier> findAllByPid(int pid);
}
